﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	xmlns:controls="clr-namespace:EarthWatchers.SL.GUI.Controls" 
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:mswindows="clr-namespace:Microsoft.Windows;assembly=System.Windows.Controls.Toolkit"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	mc:Ignorable="d" 
	x:Class="EarthWatchers.SL.GUI.Controls.LayerList">
	<Border Margin="0" Padding="0" BorderBrush="#FFE7E7E7" BorderThickness="2,0,2,2" RenderTransformOrigin="0,0" >

		<Grid d:LayoutOverrides="VerticalAlignment" Margin="0">
			<StackPanel Margin="0,0,0,39" Orientation="Vertical" VerticalAlignment="Top">
				<Grid x:Name="bgLayerGrid" Height="20" Margin="0" VerticalAlignment="Top">
					<Rectangle Margin="0" Stroke="#FF939393">
						<Rectangle.Fill>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFEFEFEF" Offset="0"/>
								<GradientStop Color="#FFEFEFEF" Offset="1"/>
								<GradientStop Color="#FFB8B8B8" Offset="0.193"/>
							</LinearGradientBrush>
						</Rectangle.Fill>
					</Rectangle>
					<sdk:Label HorizontalAlignment="Center" Margin="0" Content="Background" VerticalAlignment="Center"/>					 
				</Grid>
                <Grid HorizontalAlignment="Center" Height="69" Margin="0,6">
					<controls:BaseLayerControl x:Name="baselayerControl" HorizontalAlignment="Center"  />
				</Grid>
				<Grid x:Name="overlayGrid" Height="20" Margin="0" VerticalAlignment="Top">
					<Rectangle Margin="0" Stroke="#FF939393">
						<Rectangle.Fill>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#FFEFEFEF" Offset="0"/>
								<GradientStop Color="#FFEFEFEF" Offset="1"/>
								<GradientStop Color="#FFB8B8B8" Offset="0.193"/>
							</LinearGradientBrush>
						</Rectangle.Fill>
					</Rectangle>
					<sdk:Label HorizontalAlignment="Center" Margin="0" Content="Overlays" VerticalAlignment="Center"/>
				</Grid>
			</StackPanel>
			<Grid Margin="0,123,0,39" >
				<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch">
                    <StackPanel x:Name="layerWrapper"  />
				</ScrollViewer>
                <!--<toolkit:ListBoxDragDropTarget x:Name="dragDropWrapper" HorizontalContentAlignment="Stretch"  AllowDrop="True" VerticalContentAlignment="Stretch" >
                    <ListBox x:Name="layerWrapper" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Transparent">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel/>
                            </ItemsPanelTemplate>
                        </ListBox.ItemsPanel>
                        <ListBox.ItemTemplate>
                            <DataTemplate>

                                    <controls:LayerControl />

                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </toolkit:ListBoxDragDropTarget>-->                
			</Grid>
			<Button x:Name="btnAddLayers" Content="Add layers" Height="27" FontSize="10.667" HorizontalAlignment="Center" Click="BtnAddLayersClick" VerticalAlignment="Bottom" Margin="0,0,0,4" Style="{StaticResource GreenButton}" />
		</Grid>
	</Border>
</UserControl>